/**
 * 学生类
 */
public class Student {

    //学号
    private String number;
    //姓名
    private String Name;
    //性别
    private String gender;
    //年龄
    private int age;
    //专业
    private String subject;
    /**
     * 辅致方法
     */
    public Student(String number, String Name, String gender, int age, String subject) {
        //thi9指的是当前对象，thi9.xx 词用当前对象的属性 this.属性 = 参数值
        this.number = number;
        this.Name = Name;
        this.gender = gender;
        this.age = age;
        this.subject = subject;
    }

    /**
     * getter方法
     */
    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    /**
     * 学习方法
     */
    public void study(){
        System.out.println("学号" + number + "性别" + gender + "年龄" + age +
                "专业" + subject + "的" + Name + "同学正在学习");
    }
}
